package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;
import java.util.Date;

/**
 * 手术对应手术间信息
 * @author chenxingqing
 */
@Data
@FieldNameConstants
@TableName("b_surgical_room")
@ApiModel(value="SurgicalRoom对象", description="手术对应手术间信息")
public class SurgicalRoomEntity extends Model<SurgicalRoomEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "手术间信息表")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "手术信息表id")
    @TableField("surgical_id")
    private String surgicalId;

    @ApiModelProperty(value = "手术间id")
    @TableField("room_id")
    private String roomId;

    @ApiModelProperty(value = "手术间名称")
    @TableField("room_name")
    private String roomName;

    @ApiModelProperty(value = "区域id")
    @TableField("region_id")
    private String regionId;

    @ApiModelProperty(value = "手术在当前手术间当日的场次")
    @TableField("sort_no")
    private Integer sortNo;

    @ApiModelProperty(value = "手术排班时间")
    @TableField("operate_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date operateTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "最后修改时间")
    @TableField("update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
